user = {
    "admin": "admin1",
    "root": "root1",
    "geely": "geely1"
}

authority = {
    "admin": "yy_llm",
    "root": "zeekr",
    "geely": "yy_llm"
}


def auth(username, password):
    password2 = user.get(username)
    if password2 is None:
        return False
    return password == password2


def get_authority(username):
    return authority.get(username)
